package com.sql;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;

public class Test {
    public static void main(String[] args) throws Exception {
        Class.forName("com.mysql.jdbc.Drive");
        Connection connection= DriverManager.getConnection("jdbc:mysql://localhost:3306//manage","root","508065");

        String sql="create  table goods(id int,name varchar(16),price double,introduce text)";

        Statement statement=connection.createStatement();
        statement.execute(sql);

        statement.close();
        connection.close();
        System.out.println("成功");

    }
}
